#pragma once
#include <osg/MatrixTransform>
#include "BallAnimation.h"
#include "KeyEvent.h"

class SampleManager
{
public:
	SampleManager(osg::Group* groupScene);
	static SampleManager* instance();
	static void GenerateBall(const osg::Vec3 position);
	static void GenerateBall64();
	static float randomNumber();

	struct KeyCallback :public KeyEvent::callback
	{
		virtual void operator()();
	};

private:
	osg::Group *m_scene;
	static SampleManager* s_managerInstance;
	static BallAnimation* s_animationCallback;
	KeyCallback *m_keyCallback;
};